package io.renren.modules.news.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.news.dao.ChannelDao;
import io.renren.modules.news.entity.ChannelEntity;
import io.renren.modules.news.service.ChannelService;



@Service("channelService")
public class ChannelServiceImpl implements ChannelService {
	@Autowired
	private ChannelDao channelDao;
	
	@Override
	public ChannelEntity queryObject(Integer id){
		return channelDao.queryObject(id);
	}
	
	@Override
	public List<ChannelEntity> queryList(Map<String, Object> map){
		return channelDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return channelDao.queryTotal(map);
	}
	
	@Override
	public void save(ChannelEntity channel){
		channelDao.save(channel);
	}
	
	@Override
	public void update(ChannelEntity channel){
		channelDao.update(channel);
	}
	
	@Override
	public void delete(Integer id){
		channelDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		channelDao.deleteBatch(ids);
	}
	
}
